/*
 * @Descripttion: 
 * @Author: junhuafly
 * @Date: 2020-02-26 15:19:36
 * @LastEditors: junhuafly
 * @Email: junhuafly@163.com
 * @LastEditTime: 2020-03-12 16:32:31
 */
//logs.js
const util = require('../../utils/util.js').default

Page({
  data: {
    logs: []
  },
  onLoad: function () {
    this.setData({
      logs: (wx.getStorageSync('logs') || []).map(log => {
        return util.formatTime(new Date(log))
      })
    })
  }
})